$(function(){
	$(document).on('click', 'a.torol', function(e){
		e.preventDefault();
		var $this = $(this),
			url = $this.attr('href');
			
		$.ajax({
			url: url,
			type: 'get',
			dataType: 'json',
			success: function(json){
				console.log(json);
				if(json.success){
					$this.closest('tr').slideUp('slow', function(){
						$(this).remove()
					});
				}
			},
			error: function(xhr){
				console.log('hiba', xhr.responseText);
			}
		});
	})
});